home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_351 / pdc / libsrc.lzh / LibSrc / SysIO / Makefile < prev    next >
Makefile  |  1990-04-07  |  2KB  |  67 lines

  1.  
  2. #  Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3. #  PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4. #  PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5. #  This code is freely redistributable upon the conditions that this 
  6. #  notice remains intact and that modified versions of this file not
  7. #  be included as part of the PDC Software Distribution without the
  8. #  express consent of the copyright holders.  No warrantee of any
  9. #  kind is provided with this code.  For further information, contact:
  10. #   PDC Software Distribution    Internet:                     BIX:
  11. #   P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  12. #   Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  13.  
  14. #  Makefile to generate UNIX-style I/O library functions
  15.  
  16. CC    = ccx
  17. #
  18. #    In order to recompile some of these library files, you need the
  19. #    standard Amiga header files that can be purchased directly from
  20. #    Commodore as part of the Native Developer Update.  If you own one of
  21. #    the commercial C compilers, their headers will a suffice.  In
  22. #    order to build these library functions, be sure that PDC knows where
  23. #    to find your Amiga header files.  (Here, I use NDU:include.h)
  24. #
  25. CFLAGS    = +INDU:include.h
  26. AFLAGS    =
  27. #CFLAGS    = +INDU:include.h -g
  28. #AFLAGS    = -g
  29.  
  30. LIBRARIAN = libr
  31. INSERT  = -r
  32. SORT    = -x
  33. LIBDIR    = pdc:lib
  34. PDCINCDIR    = pdc:include
  35. LIB    = PDC.lib
  36.  
  37. SRC1 = Chk_Abort.c _abort.c exit.c isatty.c access.c
  38. OBJ1 = Chk_Abort.o _abort.o exit.o isatty.o access.o
  39. SRC2 = malloc.c rename.c unlink.c _main.c ctype.c
  40. OBJ2 = malloc.o rename.o unlink.o _main.o ctype.o
  41. SRC3 = close.c lseek.c open.c close.c read.c syserr.c write.c
  42. OBJ3 = close.o lseek.o open.o close.o read.o syserr.o write.o
  43. SRC4 = lib.asm globals.c
  44. OBJ4 = lib.o globals.o
  45. SRC5 = sleep.c 
  46. OBJ5 = sleep.o 
  47.  
  48. ALLOBJ = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5)
  49.  
  50. .SUFFIXES:    .o .a .asm .s .c
  51.  
  52. .c.o:
  53.     $(CC) $(CFLAGS) -c $*.c
  54.  
  55. .asm.o:
  56.     $(CC) $(AFLAGS) -c $*.asm
  57.  
  58. all:    $(ALLOBJ) collect
  59.  
  60. collect: $(ALLOBJ)
  61.     $(LIBRARIAN) $(INSERT) $(SORT) $(LIBDIR)/$(LIB) $(ALLOBJ)
  62.  
  63. clean:
  64.     delete \#?.o
  65.